for i in range(100):
    print('%2d'%(i), end=', ')
    if i % 10 == 9:
        print(flush=True)

for i in range(1, 101):
    print('%3d'%(i), end=', ')
    if i % 10 == 0:
        print(flush=True)
